﻿@model eduscrum.ViewModels.PhaseVM

<tr>
    @using (Html.BeginForm("Edit", "Phase", FormMethod.Post))
    {
        @Html.ValidationSummary(true)

            @Html.Hidden("projectID", Model.Project.ProjectID)
            @Html.HiddenFor(model => model.PhaseID)

            <td class="editor-field">
                @Html.TextBoxFor(model => model.Name)
            </td>
            <td>
                <input type="image" src="@Url.Content("~/images/save.png")" alt="Save" />
            </td>
            <td>
                <img onclick="deleteItem('Phase', '@Url.Action("Delete", "Phase", new { id = Model.PhaseID })')" src="@Url.Content("~/images/delete.png")" title="Delete" alt="Delete" class="icon" />
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.Name)
            </td>
    }
</tr>
